<div>
    <h3 style="font-size: 16px;font-weight: bold">{:L('_CHOSE_PINGXX_PAY_')}</h3>
    <hr/>

    {:L('_NEED_CNY_')} ￥<span style="color: red"> {$amount}</span> {:L('_YUAN_')}
    <div style="padding: 20px">

        <if condition="check_is_in_config('alipay_pc_direct',$method)">
            <label><input type="radio" data-role="set_method" name="type" value="alipay_pc_direct" checked>
                <img src="__ROOT__/Application/Pingxx/Static/images/alipay.gif"/>
            </label>
        </if>


        <if condition="check_is_in_config('wx_pub_qr',$method)">
            <label><input type="radio" data-role="set_method" name="type" value="wx_pub_qr" >
                <img style="width: 135px;height: 45px;" src="__ROOT__/Application/Pingxx/Static/images/wxpay.png"/>
            </label>
        </if>



    </div>

</div>


<form id="alipay" action="{:U('pingxx/CallPingxx/pay')}" method="post" target="_blank">
    <input type="hidden" id="frm_method" name="channel" value="{$method.0}"/>
    <input type="hidden" name="order_id" value="{$order_id}"/>

    <php>if($ext['subject']){</php>
    <input type="hidden" name="subject" value="{$ext['subject']}"/>
    <php>}</php>
    <php>if($ext['body']){</php>
    <input type="hidden" name="body" value="{$ext['body']}"/>
    <php>}</php>
    <button class="btn btn-primary pull-left" type="submit">{:L('_PAY_NOW_')}</button>
</form>


<script>
    $(function(){
        $('[data-role="set_method"]').change(function(){
            $('#frm_method').val($(this).val());
        })
    })

</script>